<?php
require('../api.inc.php');
include_once( ROOT . 'sdk/saetv2.ex.class.php' );

$o = new SaeTOAuthV2( SINAWB_AKEY , SINAWB_SKEY );

$code_url = $o->getAuthorizeURL( SINAWB_CALLBACK_URL, 'code', NULL, 'mobile' );

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>八仙</title>
</head>
<body>
    <p><a href="<?=$code_url?>">新浪微博登录</a></p>
</body>
</html>
